import axios from "@/api/request"


const patient = {
    add: "/front/patient/add",
    update: "/front/patient/update",
    delete: "/front/patient/delete",
    findById: "/front/patient/findById",
    findAll: "/front/patient/findAll",
    search: "/front/patient/search",
    nrs2002Assessment: "/front/patient/nrs2002Assessment",
    mustAssessment: "/front/patient/mustAssessment",
    generatePlan: "/front/patient/generatePlan",
    nrs2002AssessmentWebAi: "/front/patient/nrs2002AssessmentWebAi",
    mustAssessmentWebAi: "/front/patient/mustAssessmentWebAi",
    generatePlanAiForNutritionPlan: "/front/patient/generatePlanAiForNutritionPlan",
    generatePlanAiForMealPlan: "/front/patient/generatePlanAiForMealPlan",
    generatePlanAiForEnteralNutritionPlan: "/front/patient/generatePlanAiForEnteralNutritionPlan",
    generatePlanAiForParenteralNutritionPlan: "/front/patient/generatePlanAiForParenteralNutritionPlan",
}
const nutritionPlan = {
    add: "/front/nutritionPlan/add",
    update: "/front/nutritionPlan/update",
    delete: "/front/nutritionPlan/delete",
    findById: "/front/nutritionPlan/findById",
    findAll: "/front/nutritionPlan/findAll",
    search: "/front/nutritionPlan/search",
    searchByPatientId: "/front/nutritionPlan/searchByPatientId",
}
const mealPlan = {
    add: "/front/mealPlan/add",
    update: "/front/mealPlan/update",
    delete: "/front/mealPlan/delete",
    findById: "/front/mealPlan/findById",
    findAll: "/front/mealPlan/findAll",
    search: "/front/mealPlan/search",
    searchByNutritionPlanId: "/front/mealPlan/searchByNutritionPlanId",
}
const enteralNutritionPlan = {
    add: "/front/enteralNutritionPlan/add",
    update: "/front/enteralNutritionPlan/update",
    delete: "/front/enteralNutritionPlan/delete",
    findById: "/front/enteralNutritionPlan/findById",
    findAll: "/front/enteralNutritionPlan/findAll",
    search: "/front/enteralNutritionPlan/search",
    searchByNutritionPlanId: "/front/enteralNutritionPlan/searchByNutritionPlanId",
}

const parenteralNutritionPlan = {
    add: "/front/parenteralNutritionPlan/add",
    update: "/front/parenteralNutritionPlan/update",
    delete: "/front/parenteralNutritionPlan/delete",
    findById: "/front/parenteralNutritionPlan/findById",
    findAll: "/front/parenteralNutritionPlan/findAll",
    search: "/front/parenteralNutritionPlan/search",
    searchByNutritionPlanId: "/front/parenteralNutritionPlan/searchByNutritionPlanId",
}
const wardRoundRecord = {
    add: "/front/wardRoundRecord/add",
    update: "/front/wardRoundRecord/update",
    delete: "/front/wardRoundRecord/delete",
    findById: "/front/wardRoundRecord/findById",
    findAll: "/front/wardRoundRecord/findAll",
    search: "/front/wardRoundRecord/search",
}
const api = {
    patient_add(params) {
        return axios.post(patient.add, params)
    },
    patient_update(params) {
        return axios.post(patient.update, params)
    },
    patient_delete(params) {
        return axios.delete(patient.delete, {params})
    },
    patient_findById(params) {
        return axios.get(patient.findById, {params})
    },
    patient_findAll(params) {
        return axios.get(patient.findAll, {params})
    },
    patient_search(params) {
        return axios.get(patient.search, {params})
    },
    patient_nrs2002Assessment(params) {
        return axios.get(patient.nrs2002Assessment, {params})
    },
    patient_mustAssessment(params) {
        return axios.get(patient.mustAssessment, {params})
    },
    patient_mustAssessmentWebAi(params) {
        return axios.get(patient.mustAssessmentWebAi, {params})
    },
    patient_nrs2002AssessmentWebAi(params) {
        return axios.get(patient.nrs2002AssessmentWebAi, {params})
    },
    patient_generatePlan(params) {
        return axios.get(patient.generatePlan, {params})
    },
    patient_generatePlanAiForNutritionPlan(params) {
        return axios.get(patient.generatePlanAiForNutritionPlan, {params})
    },
    patient_generatePlanAiForMealPlan(params) {
        return axios.get(patient.generatePlanAiForMealPlan, {params})
    },
    patient_generatePlanAiForEnteralNutritionPlan(params) {
        return axios.get(patient.generatePlanAiForEnteralNutritionPlan, {params})
    },
    patient_generatePlanAiForParenteralNutritionPlan(params) {
        return axios.get(patient.generatePlanAiForParenteralNutritionPlan, {params})
    },



    nutritionPlan_add(params) {
        return axios.post(nutritionPlan.add, params)
    },
    nutritionPlan_update(params) {
        return axios.post(nutritionPlan.update, params)
    },
    nutritionPlan_delete(params) {
        return axios.delete(nutritionPlan.delete, {params})
    },
    nutritionPlan_findById(params) {
        return axios.get(nutritionPlan.findById, {params})
    },
    nutritionPlan_findAll(params) {
        return axios.get(nutritionPlan.findAll, {params})
    },
    nutritionPlan_search(params) {
        return axios.get(nutritionPlan.search, {params})
    },
    nutritionPlan_searchByPatientId(params) {
        return axios.get(nutritionPlan.searchByPatientId, {params})
    },


    mealPlan_add(params) {
        return axios.post(mealPlan.add, params)
    },
    mealPlan_update(params) {
        return axios.post(mealPlan.update, params)
    },
    mealPlan_delete(params) {
        return axios.delete(mealPlan.delete, {params})
    },
    mealPlan_findById(params) {
        return axios.get(mealPlan.findById, {params})
    },
    mealPlan_findAll(params) {
        return axios.get(mealPlan.findAll, {params})
    },
    mealPlan_search(params) {
        return axios.get(mealPlan.search, {params})
    },
    mealPlan_searchByNutritionPlanId(params) {
        return axios.get(mealPlan.searchByNutritionPlanId, {params})
    },


    enteralNutritionPlan_add(params) {
        return axios.post(enteralNutritionPlan.add, params)
    },
    enteralNutritionPlan_update(params) {
        return axios.post(enteralNutritionPlan.update, params)
    },
    enteralNutritionPlan_delete(params) {
        return axios.delete(enteralNutritionPlan.delete, {params})
    },
    enteralNutritionPlan_findById(params) {
        return axios.get(enteralNutritionPlan.findById, {params})
    },
    enteralNutritionPlan_findAll(params) {
        return axios.get(enteralNutritionPlan.findAll, {params})
    },
    enteralNutritionPlan_search(params) {
        return axios.get(enteralNutritionPlan.search, {params})
    },
    enteralNutritionPlan_searchByNutritionPlanId(params) {
        return axios.get(enteralNutritionPlan.searchByNutritionPlanId, {params})
    },


    parenteralNutritionPlan_add(params) {
        return axios.post(parenteralNutritionPlan.add, params)
    },
    parenteralNutritionPlan_update(params) {
        return axios.post(parenteralNutritionPlan.update, params)
    },
    parenteralNutritionPlan_delete(params) {
        return axios.delete(parenteralNutritionPlan.delete, {params})
    },
    parenteralNutritionPlan_findById(params) {
        return axios.get(parenteralNutritionPlan.findById, {params})
    },
    parenteralNutritionPlan_findAll(params) {
        return axios.get(parenteralNutritionPlan.findAll, {params})
    },
    parenteralNutritionPlan_search(params) {
        return axios.get(parenteralNutritionPlan.search, {params})
    },
    parenteralNutritionPlan_searchByNutritionPlanId(params) {
        return axios.get(parenteralNutritionPlan.searchByNutritionPlanId, {params})
    },

    wardRoundRecord_add(params) {
        return axios.post(wardRoundRecord.add, params)
    },
    wardRoundRecord_update(params) {
        return axios.post(wardRoundRecord.update, params)
    },
    wardRoundRecord_delete(params) {
        return axios.delete(wardRoundRecord.delete, {params})
    },
    wardRoundRecord_findById(params) {
        return axios.get(wardRoundRecord.findById, {params})
    },
    wardRoundRecord_findAll(params) {
        return axios.get(wardRoundRecord.findAll, {params})
    },
    wardRoundRecord_search(params) {
        return axios.get(wardRoundRecord.search, {params})
    },


}
export default api
